﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using IOEntity;
using IODataAccess;
namespace IOBusiness
{
    public class clsBSTypeDetail
    {
        clsDATypeDetail obj = new clsDATypeDetail();
        public clsTypeDetail GetById(int id)
        {
            try
            {
                return obj.GetById(id);
            }
            catch (Exception)
            {

                throw;
            }
            
        }
        public List<clsTypeDetail> GetAll()
        {
            try
            {
                return obj.GetAll();
            }
            catch (Exception)
            {

                throw;
            }
        }
        public int Insert(clsTypeDetail obj)
        {
            try
            {
                return this.obj.Insert(obj);
            }
            catch (Exception)
            {

                throw;
            }
            
        }
        public void Update(clsTypeDetail obj)
        {
            try
            {
                this.obj.Update(obj);
            }
            catch (Exception)
            {

                throw;
            }
        }
        public void Delete(int id)
        {
            try
            {
                this.obj.Delete(id);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
